<%-- 
    Document   : tampil
    Created on : 19 Jun 11, 0:41:18
    Author     : compaq
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <c:if test="${not empty daftarPasien}" >
        <form action="/ProjekPMI/ControlPasien" method="POST">
        <table width="334" border="1">
            <tr>
                <td width="125">id</td>
                <td width="193">
                    <input type="hidden" value="hapus" name="flag" />
                    <input type="text" name="id" value="<c:out value="${daftarPasien.id}"  />" />
              </td>
            </tr>
            <tr>
                <td>Nama</td><td><input name="nama" type="text" size="30" maxlength="30" value="<c:out value="${daftarPasien.nama}" />" /></td>
            </tr>
            <tr>
                <td>Jenkel</td><td>
                    <input name="jenkel" type="radio" value="L" <c:if test="${daftarPasien.jenkel=='L'}" ><c:out value="checked='checked'" /></c:if> />
                    Laki-Laki
                    <input name="jenkel" type="radio" value="P" <c:if test="${daftarPasien.jenkel=='P'}" ><c:out value="checked='checked'" /></c:if> />
                    Perempuan
                </td>
            </tr>
            <tr>
                <td>Umur</td><td><input name="umur" type="text" size="5" maxlength="5" value="<c:out value="${daftarPasien.umur}" />" /></td>
            </tr>
            <tr>
                <td>Goldarah</td><td>
                    <select name="goldarah">
                       
                      <option value="A" <c:if test="${daftarPasien.goldarah=='A'}" ><c:out value="selected='selected'" /></c:if> >A</option>
                      <option value="B" <c:if test="${daftarPasien.goldarah=='B'}" ><c:out value="selected='selected'" /></c:if> >B</option>
                      <option value="AB" <c:if test="${daftarPasien.goldarah=='AB'}" ><c:out value="selected='selected'" /></c:if> >AB</option>
                      <option value="O" <c:if test="${daftarPasien.goldarah=='O'}" ><c:out value="selected='selected'" /></c:if> >O</option>
                    </select>
                </form>
                </td>
            </tr>
            <tr>
                <td valign="top">Alamat</td><td><textarea name="alamat" rows="2" ><c:out value="${daftarPasien.alamat}" /></textarea></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><input type="submit" name="submit" value="Enter" /></td>
            </tr>
</table>
        </form>
        </c:if>
    </body>
</html>
